#include <unistd.h>

main()
{
    char *argv[] = {"showenv", NULL};
    char *envp[] = {"foo=bar", "bar=foo", NULL};

    execve("./showenv", argv, envp);
    perror("execve failed");
    return;
}